package com.peoit.honeycomb.domain.security;

import com.peoit.honeycomb.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 权限实体
 * Created by zhouqiu on 2015/10/12.
 */
@Entity
@Table(name="honeycomb_permission")
public class Permission extends BaseEntity {

    //父权限
    @OneToOne
//    @Column(nullable=true)
    private Permission parentPermission;

    //权限所处级别
    private String level;

    //权限所在菜单
    private String inWhere;

    //权限名称
    private String name;
    //描述
    private String description;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Permission getParentPermission() {
        return parentPermission;
    }

    public void setParentPermission(Permission parentPermission) {
        this.parentPermission = parentPermission;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getInWhere() {
        return inWhere;
    }

    public void setInWhere(String inWhere) {
        this.inWhere = inWhere;
    }
}
